<template>
  <div class="page_padding">
    <MyNavBar @goback="goback" :title="title" />
    <check-detail v-if="formType === '1'"></check-detail>
    <audit-detail v-if="formType === '2'"></audit-detail>
  </div>
</template>

<script>
import MyNavBar from '@com/MyNavBar'
import checkDetail from './components/checkDetail.vue'
import auditDetail from './components/auditDetail.vue'
export default {
  name: 'expenseDetail',
  components: {
    MyNavBar,
    checkDetail,
    auditDetail,
  },
  props: {},
  data() {
    return {
      title: '',
      formType: '',
    }
  },
  computed: {},
  watch: {},
  created() {
    this.formType = this.$route.query.formType
    switch (this.formType) {
      case '1':
        this.title = '出差审批表'
        break
      case '2':
        this.title = '差旅费报销单'
        break
      default:
        break
    }
  },
  mounted() {},
  methods: {
    goback() {
      this.$router.go(-1)
    },
  },
}
</script>

<style lang="scss" scoped></style>
